<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>จัดการข้อมูลอาจารย์</title>

<style type="text/css">
.body {
	font-family: Verdana, Geneva, sans-serif;
	font-size: 14px;
	color: #FFF;
}

#boxcenter{
	height: auto;
	width: 760px;
	background-color: #444041;
}
body,td,th {
	color: #FFF;
}
</style>
</head>
<body>



<div id="boxcenter">
  

<form action="" method="post" enctype="multipart/form-data" name="" id="">
<table width="100%" border="0" cellpadding="1" cellspacing="1">
  
  <tr class="txt_td">
    <th width="18%" height="25"  background="images/img/had.png">ลำดับ</th>
    <th width="67%" height="25"  background="images/img/had.png">ชื่อ - นามสกุล</th>
    <th width="15%" height="25"  background="images/img/had.png">จัดการข้อมูล</th>
  </tr>
<?
   $sql_m = "select * from tb_teacher order by teacher_id asc";
   $result_m = $dbfunc->query($sql_m);
   
   $j=1;
      while( $fetch_m= mysql_fetch_object($result_m)){
?>   
  <tr>
    <td align="center" bgcolor="#999999"><? echo $j++?></td>
    <td align="center" bgcolor="#999999"><? echo $fetch_m->teacher_name."&nbsp; &nbsp;".$fetch_m->teacher_surname ;?></td>
    <td align="center" bgcolor="#999999">
    <a href="?module=admin&page=edit_teacher&m=<?=$fetch_m->teacher_id;?>">
    <img src="images/edit.png" width="15" height="15" border="0" /></a>
    <a href="?module=admin&page=del_teacher&m=<?=$fetch_m->teacher_id;?>">
     <img src="images/delete.png" width="15" height="15" border="0" /></a>
     
     </td>
  </tr>
<? }?> 
</table>
    <table width="100%" border="0" cellspacing="1" cellpadding="1">
      <tr>
        <th width="85%" scope="col">&nbsp;</th>
        <th width="15%" bgcolor="#999999" ><a href="?module=admin&page=frm_teacher" class="body">เพิ่มข้อมูล</a></span>
        </a></p></th>
        </tr>
    </table>
</form >
</div>
 
</body>
</html>